const user = require('../data/user');
module.exports = async (req, res, next) => {
  const tel = req.query.userTel
  const age = req.query.age
  const data = await user.updateOne({ tel: tel }, {age:age});
  if (data === age) {
    res,send({
      code:1,
      msg:'年龄修改成功'
    })
  }else{
    res.send({
      code:0,
      msg:'年龄修改失败'
    })
  }
}